package com.nuoniu.sibanyun.controller.erp;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.entity.dto.*;
import com.nuoniu.sibanyun.service.erp.IErpVoucherTableService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 单据类型 前端控制器
 * </p>
 *
 * @author baiqiang
 * @since 2020-09-23
 */
@RestController
@RequestMapping("/erp/voucherTable")
@Api(value = "单据类型", tags = "单据类型")
@Log4j2
public class ErpVoucherTableController extends BaseController {

    @Autowired
    private IErpVoucherTableService erpVoucherTableService;



    @GetMapping("/listByDto")
    @ApiOperation(value = "获取某个表单的 当前配置")
    public HttpResult listByDto(ErpVoucherTableDto erpVoucherTableDto) {
        return HttpResult.ok(erpVoucherTableService.listByDto(erpVoucherTableDto));
    }


}
